package com.zhz.lib.cms.dto;

import java.util.ArrayList;

public class TMenu {

	public String name;
	public ArrayList<SubMenu> submenuList;

	public TMenu(String tmenuname, ArrayList subMenuList) {
		this.name = tmenuname;
		this.submenuList = subMenuList;
	}

	public TMenu(String tmenuname) {
		this.name = tmenuname;
		submenuList = new ArrayList();

	}

	public ArrayList getSubMenu() {
		return this.submenuList;
	}

	public void addSubMenu(SubMenu sm) {
		submenuList.add(sm);
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}
}